package com.hengpeng.itfin.persist;

import java.util.Date;
import java.util.List;

import com.hengpeng.common.persist.NestedSimplyDao;
import com.hengpeng.itfinbase.persist.RepaymentPlan;
import com.hengpeng.itfinbase.persist.RepaymentPlan.ReplaymentStatus;

public interface RepaymentPlanDao extends NestedSimplyDao<RepaymentPlan>
{
	public List<RepaymentPlan> getOverdureList();

	public void updatePlans(List<RepaymentPlan> plans);

	public void savePlans(List<RepaymentPlan> plans);

	public long countRepayPlan(Long borrowId, ReplaymentStatus[] status);

	public abstract List<RepaymentPlan> lockList(Long borrowInfoId, Integer curRecNum, ReplaymentStatus[] status);
	
	public int updateStatus(Long borrowInfoId,ReplaymentStatus newStatus,ReplaymentStatus oldStatus,Date repayTime,Date updateTime, int curRepayNum);
}
